#ifndef FIND_CAMERA_MANIPULATOR_BY_ID_VISITOR
#define FIND_CAMERA_MANIPULATOR_BY_ID_VISITOR 1

#include <vector>
#include <string>

#include <osg/NodeVisitor>
#include <osgGA/CameraManipulator>
#include <osgViewer/Viewer>
class FindCameraManipulatorByIdVisitor : public osg::NodeVisitor
{
public:
	FindCameraManipulatorByIdVisitor();
	
	virtual ~FindCameraManipulatorByIdVisitor();

	virtual void apply(osgViewer::Viewer& viewer);
	
	void setIdString(const std::string& id_string);

	osg::ref_ptr<osgGA::CameraManipulator> getFindedCameraManipulator();
private:
	std::string _id_string;
	osg::ref_ptr<osgGA::CameraManipulator> _finded_camera_mani;
};

#endif //!FIND_CAMERA_MANIPULATOR_BY_ID_VISITOR